# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgbase=cypari2
pkgname=python-cypari2
pkgver=2.1.4
pkgrel=1
pkgdesc='Cython bindings for PARI'
arch=(loong64 x86_64)
url='https://www.sagemath.org'
license=(LGPL)
depends=(glibc
         pari
         python
         python-cysignals)
makedepends=(cython
             python-build
             python-installer
             python-setuptools
             python-wheel)
source=(https://github.com/sagemath/cypari2/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('95daf1a74275a35730bbca75144776c1bb0594dd90af82ebf7bf96bb1a52c3d8')

build() {
  cd $pkgbase-$pkgver
  python -m build --wheel --no-isolation
}

package_python-cypari2() {
  cd $pkgbase-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
